Skip to content

docs: note array index access with this.[n] in #each - #189

Merged
jaylinski merged 1 commit into
handlebars-lang:masterfrom
Hashim1999164:docs/each-array-segment-access
Aug 8, 2026
Merged

docs: note array index access with this.[n] in #each#189
jaylinski merged 1 commit into
handlebars-lang:masterfrom
Hashim1999164:docs/each-array-segment-access

Conversation

@Hashim1999164

@Hashim1999164 Hashim1999164 commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Document how to read fixed array indexes inside #each using segment-literal paths like this.[0].
  • Link to the existing Literal segments guide and call out that this[0] is not valid Handlebars syntax.

Fixes #188

Test plan

  • Preview the Built-in Helpers #each section and confirm the new note renders correctly
  • Confirm the Literal segments link resolves

Document segment-literal notation for reading fixed indexes when
iterating arrays of arrays. Fixes handlebars-lang#188.
@jaylinski
jaylinski merged commit 183d34a into handlebars-lang:master Aug 8, 2026
@jaylinski

Copy link
Copy Markdown
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mention array access in Built-in Helpers#each docs

2 participants